//
//  SearchAndChooseManager.m
//  SafeFoodManagerDemo
//
//  Created by bob on 2017/11/14.
//  Copyright © 2017年 bob. All rights reserved.
//

#import "SearchAndChooseManager.h"

@implementation SearchAndChooseManager


+(NSArray*)GetChooseDateWithType:(ChooseType)type andIsLookSelf:(BOOL)isLookSelf
{
    NSMutableArray *dataArr=[NSMutableArray array];
    
    NSArray *PostArr= [USER_DEFAULT objectForKey:@"TBChoose"];//如果本地存在则读取本地的
    
    if (PostArr.count!=0) {
        
        return PostArr;
    }
    
    if (isLookSelf) {
        //查看自己
        if ([LoginStatuesModel getUserType]==1) {
            //商户
            
            switch (type) {
                case INAcountType:
                {
                    
                      NSArray *ParamsArr=@[@{@"fieldName":@"supplierIds",@"name":@"供应商",@"value":@""},@{@"fieldName":@"startDate",@"name":@"开始日期",@"value":@""},@{@"fieldName":@"endDate",@"name":@"结束日期",@"value":@""}];
                    
                    [dataArr addObjectsFromArray:ParamsArr];
                    
                }
                    break;
                    
                 case INNongType:
                {
                    
                    NSArray *ParamsArr=@[@{@"fieldName":@"startDate",@"name":@"开始日期",@"value":@""},@{@"fieldName":@"endDate",@"name":@"结束日期",@"value":@""}];
                    
                    [dataArr addObjectsFromArray:ParamsArr];
                    
                    
                }
                    break;
                    
                case OutAcountType:
                {
                    NSArray *ParamsArr=@[@{@"fieldName":@"startDate",@"name":@"开始日期",@"value":@""},@{@"fieldName":@"endDate",@"name":@"结束日期",@"value":@""}];
                    
                    [dataArr addObjectsFromArray:ParamsArr];
                }
                    break;
                    
                    case ShopListType:
                {
                    NSArray *ParamsArr=@[@{@"fieldName":@"startDate",@"name":@"开始日期",@"value":@""},@{@"fieldName":@"endDate",@"name":@"结束日期",@"value":@""}];
                    
                    [dataArr addObjectsFromArray:ParamsArr];
                }
                    break;
                    
                case OpenListType:
                {
                    //无
                }
                    break;
                case SatffListType:
                {
                    NSArray *ParamsArr=@[@{@"fieldName":@"startDate",@"name":@"开始日期",@"value":@""},@{@"fieldName":@"endDate",@"name":@"结束日期",@"value":@""}];
                    
                    [dataArr addObjectsFromArray:ParamsArr];
                }
                    break;
                case PositionListType:
                {
                    //keyword
                }
                    break;
                case SupplyListType:
                {
                    //keyword
                }
                    break;
                case ProductsListType:
                {
                    //keyword
                }
                    break;
                case ProductCataType:
                {
                    //keyword
                }
                    break;
                case SubjectListType:
                {
                    //无
                }
                    break;
                case CheckRecordListType:
                {
                    NSArray *ParamsArr=@[@{@"fieldName":@"checkUserIds",@"name":@"检查员",@"value":@""},@{@"fieldName":@"subjectIds",@"name":@"检查主题",@"value":@""},@{@"fieldName":@"startDate",@"name":@"开始日期",@"value":@""},@{@"fieldName":@"endDate",@"name":@"结束日期",@"value":@""}];
                    
                    [dataArr addObjectsFromArray:ParamsArr];
                }
                    break;
                case CustomGroupListType:
                {
                     //无
                }
                    break;
                case GroupChildListType:
                {
                    //无
                }
                    break;
                    
                case PatrolListType:
                {
                    NSArray *ParamsArr=@[@{@"fieldName":@"checkUserIds",@"name":@"检查员",@"value":@""},@{@"fieldName":@"startDate",@"name":@"开始日期",@"value":@""},@{@"fieldName":@"endDate",@"name":@"结束日期",@"value":@""}];
                    
                    [dataArr addObjectsFromArray:ParamsArr];
                }
                    break;
                    
                  case bigItemReprotType:
                {
                    NSArray *ParamsArr=@[@{@"fieldName":@"subjectId",@"name":@" ",@"value":@""},@{@"fieldName":@"confirmState",@"name":@" ",@"value":@""},@{@"fieldName":@"rectifyState",@"name":@" ",@"value":@""},@{@"fieldName":@"checkUserIds",@"name":@"检查员",@"value":@""},@{@"fieldName":@"startDate",@"name":@"开始日期",@"value":@""},@{@"fieldName":@"endDate",@"name":@"结束日期",@"value":@""}];
                    
                    [dataArr addObjectsFromArray:ParamsArr];
                    
                }
                    break;
                case smallItemReprotType:
                {
                    NSArray *ParamsArr=@[@{@"fieldName":@"subjectId",@"name":@" ",@"value":@""},@{@"fieldName":@"confirmState",@"name":@" ",@"value":@""},@{@"fieldName":@"rectifyState",@"name":@" ",@"value":@""},@{@"fieldName":@"checkUserIds",@"name":@"检查员",@"value":@""},@{@"fieldName":@"startDate",@"name":@"开始日期",@"value":@""},@{@"fieldName":@"endDate",@"name":@"结束日期",@"value":@""}];
                    
                    [dataArr addObjectsFromArray:ParamsArr];
                }
                    break;
                case AdditiveListType:
                {
                    NSArray *ParamsArr=@[@{@"fieldName":@"catId",@"name":@"分类",@"value":@""}];
                    
                    [dataArr addObjectsFromArray:ParamsArr];
                }
                    break;
                default:
                    break;
            }
            
            
        }else if ([LoginStatuesModel getUserType]==2||[LoginStatuesModel getUserType]==4)
            
        {
            //检查员
            
            
            switch (type) {
                case INAcountType:
                {
                 
                      NSArray *ParamsArr=@[@{@"fieldName":@"marketIds",@"name":@"开办方",@"value":@""},@{@"fieldName":@"shopIds",@"name":@"商户",@"value":@""},@{@"fieldName":@"supplierIds",@"name":@"供应商",@"value":@""},@{@"fieldName":@"type",@"name":@"",@"value":@""},@{@"fieldName":@"startDate",@"name":@"开始日期",@"value":@""},@{@"fieldName":@"endDate",@"name":@"结束日期",@"value":@""},@{@"fieldName":@"areaId1",@"name":@" ",@"value":@""},@{@"fieldName":@"areaId2",@"name":@" ",@"value":@""},@{@"fieldName":@"areaId3",@"name":@" ",@"value":@""},@{@"fieldName":@"areaId4",@"name":@" ",@"value":@""}];
                    
                    [dataArr addObjectsFromArray:ParamsArr];
                    
                }
                    break;
                    
                case INNongType:
                {
                    
                    NSArray *ParamsArr=@[@{@"fieldName":@"marketIds",@"name":@"开办方",@"value":@""},@{@"fieldName":@"shopIds",@"name":@"商户",@"value":@""},@{@"fieldName":@"type",@"name":@"",@"value":@""},@{@"fieldName":@"startDate",@"name":@"开始日期",@"value":@""},@{@"fieldName":@"endDate",@"name":@"结束日期",@"value":@""},@{@"fieldName":@"areaId1",@"name":@" ",@"value":@""},@{@"fieldName":@"areaId2",@"name":@" ",@"value":@""},@{@"fieldName":@"areaId3",@"name":@" ",@"value":@""},@{@"fieldName":@"areaId4",@"name":@" ",@"value":@""}];
                    
                    [dataArr addObjectsFromArray:ParamsArr];
                    
                }
                    break;
                    
                case OutAcountType:
                {
                    NSArray *ParamsArr=@[@{@"fieldName":@"marketIds",@"name":@"开办方",@"value":@""},@{@"fieldName":@"shopIds",@"name":@"商户",@"value":@""},@{@"fieldName":@"type",@"name":@"",@"value":@""},@{@"fieldName":@"startDate",@"name":@"开始日期",@"value":@""},@{@"fieldName":@"endDate",@"name":@"结束日期",@"value":@""},@{@"fieldName":@"areaId1",@"name":@" ",@"value":@""},@{@"fieldName":@"areaId2",@"name":@" ",@"value":@""},@{@"fieldName":@"areaId3",@"name":@" ",@"value":@""},@{@"fieldName":@"areaId4",@"name":@" ",@"value":@""}];
                    
                    [dataArr addObjectsFromArray:ParamsArr];
                }
                    break;
                case ShopListType:
                {
                    
                      NSArray *ParamsArr=@[@{@"fieldName":@"marketIds",@"name":@"开办方",@"value":@""},@{@"fieldName":@"groupId",@"name":@"",@"value":@""},@{@"fieldName":@"startDate",@"name":@"开始日期",@"value":@""},@{@"fieldName":@"endDate",@"name":@"结束日期",@"value":@""},@{@"fieldName":@"areaId1",@"name":@" ",@"value":@""},@{@"fieldName":@"areaId2",@"name":@" ",@"value":@""},@{@"fieldName":@"areaId3",@"name":@" ",@"value":@""},@{@"fieldName":@"areaId4",@"name":@" ",@"value":@""}];
                    
                     [dataArr addObjectsFromArray:ParamsArr];
                    
                }
                    break;
                    
                case OpenListType:
                {
                    
                    NSArray *ParamsArr=@[@{@"fieldName":@"startDate",@"name":@"开始日期",@"value":@""},@{@"fieldName":@"endDate",@"name":@"结束日期",@"value":@""}];
                    
                    [dataArr addObjectsFromArray:ParamsArr];
                    
                }
                    break;
                case SatffListType:
                {
                    NSArray *ParamsArr=@[@{@"fieldName":@"marketIds",@"name":@"开办方",@"value":@""},@{@"fieldName":@"shopIds",@"name":@"商户",@"value":@""},@{@"fieldName":@"type",@"name":@"",@"value":@""},@{@"fieldName":@"startDate",@"name":@"开始日期",@"value":@""},@{@"fieldName":@"endDate",@"name":@"结束日期",@"value":@""}];
                    
                    [dataArr addObjectsFromArray:ParamsArr];
                }
                    break;
                case PositionListType:
                {
                     NSArray *ParamsArr=@[@{@"fieldName":@"marketIds",@"name":@"开办方",@"value":@""},@{@"fieldName":@"type",@"name":@"",@"value":@""},@{@"fieldName":@"shopIds",@"name":@"商户",@"value":@""}];
                    
                     [dataArr addObjectsFromArray:ParamsArr];
                }
                    break;
                case SupplyListType:
                {
                    NSArray *ParamsArr=@[@{@"fieldName":@"marketIds",@"name":@"开办方",@"value":@""},@{@"fieldName":@"shopIds",@"name":@"商户",@"value":@""},@{@"fieldName":@"type",@"name":@"",@"value":@""}];
                    
                    [dataArr addObjectsFromArray:ParamsArr];
                }
                    break;
                case ProductsListType:
                {
                    NSArray *ParamsArr=@[@{@"fieldName":@"marketIds",@"name":@"开办方",@"value":@""},@{@"fieldName":@"shopIds",@"name":@"商户",@"value":@""},@{@"fieldName":@"type",@"name":@"",@"value":@""}];
                    [dataArr addObjectsFromArray:ParamsArr];
                }
                    break;
                case ProductCataType:
                {
                    NSArray *ParamsArr=@[@{@"fieldName":@"marketIds",@"name":@"开办方",@"value":@""},@{@"fieldName":@"shopIds",@"name":@"商户",@"value":@""},@{@"fieldName":@"type",@"name":@"",@"value":@""}];
                    [dataArr addObjectsFromArray:ParamsArr];
                }
                    break;
                case SubjectListType:
                {
                    //keyword
                }
                    break;
                case CheckRecordListType:
                {
                    NSArray *ParamsArr=@[@{@"fieldName":@"marketIds",@"name":@"开办方",@"value":@""},@{@"fieldName":@"shopIds",@"name":@"商户",@"value":@""},@{@"fieldName":@"type",@"name":@"",@"value":@""},@{@"fieldName":@"checkUserIds",@"name":@"检查员",@"value":@""},@{@"fieldName":@"groupId",@"name":@"",@"value":@""},@{@"fieldName":@"subjectIds",@"name":@"检查主题",@"value":@""},@{@"fieldName":@"startDate",@"name":@"开始日期",@"value":@""},@{@"fieldName":@"endDate",@"name":@"结束日期",@"value":@""}];
                    
                    [dataArr addObjectsFromArray:ParamsArr];
                }
                    break;
                case CustomGroupListType:
                {
                    //keyword
                }
                    break;
                case GroupChildListType:
                {
                    //keyword
                }
                    break;
                    
                case PatrolListType:
                {
                     NSArray *ParamsArr=@[@{@"fieldName":@"marketIds",@"name":@"开办方",@"value":@""},@{@"fieldName":@"shopIds",@"name":@"商户",@"value":@""},@{@"fieldName":@"type",@"name":@"",@"value":@""},@{@"fieldName":@"checkUserIds",@"name":@"检查员",@"value":@""},@{@"fieldName":@"startDate",@"name":@"开始日期",@"value":@""},@{@"fieldName":@"endDate",@"name":@"结束日期",@"value":@""}];
                     [dataArr addObjectsFromArray:ParamsArr];
                }
                    break;
                    
                case bigItemReprotType:
                {
                    NSArray *ParamsArr=@[@{@"fieldName":@"subjectId",@"name":@" ",@"value":@""},@{@"fieldName":@"marketIds",@"name":@"开办方",@"value":@""},@{@"fieldName":@"shopIds",@"name":@"商户",@"value":@""},@{@"fieldName":@"confirmState",@"name":@" ",@"value":@""},@{@"fieldName":@"rectifyState",@"name":@" ",@"value":@""},@{@"fieldName":@"shopSize",@"name":@"商户规模",@"value":@""},@{@"fieldName":@"checkUserIds",@"name":@"检查员",@"value":@""},@{@"fieldName":@"startDate",@"name":@"开始日期",@"value":@""},@{@"fieldName":@"endDate",@"name":@"结束日期",@"value":@""}];
                    
                    [dataArr addObjectsFromArray:ParamsArr];
                    
                }
                    break;
                case smallItemReprotType:
                {
                    NSArray *ParamsArr=@[@{@"fieldName":@"subjectId",@"name":@" ",@"value":@""},@{@"fieldName":@"marketIds",@"name":@"开办方",@"value":@""},@{@"fieldName":@"shopIds",@"name":@"商户",@"value":@""},@{@"fieldName":@"confirmState",@"name":@" ",@"value":@""},@{@"fieldName":@"rectifyState",@"name":@" ",@"value":@""},@{@"fieldName":@"shopSize",@"name":@"商户规模",@"value":@""},@{@"fieldName":@"checkUserIds",@"name":@"检查员",@"value":@""},@{@"fieldName":@"startDate",@"name":@"开始日期",@"value":@""},@{@"fieldName":@"endDate",@"name":@"结束日期",@"value":@""}];
                    
                    [dataArr addObjectsFromArray:ParamsArr];
                }
                    break;
                case ExaminationListType:
                {
                    NSArray *ParamsArr=@[@{@"fieldName":@"startDate",@"name":@"开始日期",@"value":@""},@{@"fieldName":@"endDate",@"name":@"结束日期",@"value":@""},@{@"fieldName":@"markStaffIds",@"name":@"考官",@"value":@""},@{@"fieldName":@"minScore",@"name":@"最低分",@"value":@""},@{@"fieldName":@"maxScore",@"name":@"最高分",@"value":@""},@{@"fieldName":@"examId",@"name":@"",@"value":@""},@{@"fieldName":@"isAnswer",@"name":@"是否交卷",@"value":@""},@{@"fieldName":@"isMark",@"name":@"是否阅卷",@"value":@""}];
                    
                    [dataArr addObjectsFromArray:ParamsArr];
                }
                    break;
                case AdditiveListType:
                {
                    NSArray *ParamsArr=@[@{@"fieldName":@"catId",@"name":@"分类",@"value":@""}];
                    
                    [dataArr addObjectsFromArray:ParamsArr];
                }
                    break;
                default:
                    break;
            }
            
        }else if ([LoginStatuesModel getUserType]==3)
            
        {
            //开办方
            
            switch (type) {
                case INAcountType:
                {
                 
                    NSArray *ParamsArr=@[@{@"fieldName":@"shopIds",@"name":@"商户",@"value":@""},@{@"fieldName":@"supplierIds",@"name":@"供应商",@"value":@""},@{@"fieldName":@"startDate",@"name":@"开始日期",@"value":@""},@{@"fieldName":@"endDate",@"name":@"结束日期",@"value":@""}];
                    
                    [dataArr addObjectsFromArray:ParamsArr];
                    
                    
                }
                    break;
                    
                case INNongType:
                {
                    NSArray *ParamsArr=@[@{@"fieldName":@"shopIds",@"name":@"商户",@"value":@""},@{@"fieldName":@"startDate",@"name":@"开始日期",@"value":@""},@{@"fieldName":@"endDate",@"name":@"结束日期",@"value":@""}];
                    
                    [dataArr addObjectsFromArray:ParamsArr];
                }
                    break;
                    
                case OutAcountType:
                {
                    NSArray *ParamsArr=@[@{@"fieldName":@"shopIds",@"name":@"商户",@"value":@""},@{@"fieldName":@"startDate",@"name":@"开始日期",@"value":@""},@{@"fieldName":@"endDate",@"name":@"结束日期",@"value":@""}];
                    
                    [dataArr addObjectsFromArray:ParamsArr];
                }
                    break;
                case ShopListType:
                {
                    NSArray *ParamsArr=@[@{@"fieldName":@"startDate",@"name":@"开始日期",@"value":@""},@{@"fieldName":@"endDate",@"name":@"结束日期",@"value":@""}];
                    
                    [dataArr addObjectsFromArray:ParamsArr];
                }
                    break;
                    
                case OpenListType:
                {
                    //无
                }
                    break;
                case SatffListType:
                {
                    
                    NSArray *ParamsArr=@[@{@"fieldName":@"shopIds",@"name":@"商户",@"value":@""},@{@"fieldName":@"startDate",@"name":@"开始日期",@"value":@""},@{@"fieldName":@"endDate",@"name":@"结束日期",@"value":@""}];
                    
                    [dataArr addObjectsFromArray:ParamsArr];
                    
                }
                    break;
                case PositionListType:
                {
                    NSArray *ParamsArr=@[@{@"fieldName":@"shopIds",@"name":@"商户",@"value":@""}];
                    
                    [dataArr addObjectsFromArray:ParamsArr];
                }
                    break;
                case SupplyListType:
                {
                    NSArray *ParamsArr=@[@{@"fieldName":@"shopIds",@"name":@"商户",@"value":@""}];
                    
                    [dataArr addObjectsFromArray:ParamsArr];
                }
                    break;
                case ProductsListType:
                {
                    NSArray *ParamsArr=@[@{@"fieldName":@"shopIds",@"name":@"商户",@"value":@""}];
                    
                    [dataArr addObjectsFromArray:ParamsArr];
                }
                    break;
                case ProductCataType:
                {
                    NSArray *ParamsArr=@[@{@"fieldName":@"shopIds",@"name":@"商户",@"value":@""}];
                    
                    [dataArr addObjectsFromArray:ParamsArr];
                }
                    break;
                case SubjectListType:
                {
                    //keyword
                }
                    break;
                case CheckRecordListType:
                {
                       NSArray *ParamsArr=@[@{@"fieldName":@"checkUserIds",@"name":@"检查员",@"value":@""},@{@"fieldName":@"subjectIds",@"name":@"检查主题",@"value":@""},@{@"fieldName":@"startDate",@"name":@"开始日期",@"value":@""},@{@"fieldName":@"endDate",@"name":@"结束日期",@"value":@""}];
                     [dataArr addObjectsFromArray:ParamsArr];
                }
                    break;
                case CustomGroupListType:
                {
                    //无
                }
                    break;
                case GroupChildListType:
                {
                    //无
                }
                    break;
                    
                case PatrolListType:
                {
                    NSArray *ParamsArr=@[@{@"fieldName":@"shopIds",@"name":@"商户",@"value":@""},@{@"fieldName":@"checkUserIds",@"name":@"检查员",@"value":@""},@{@"fieldName":@"startDate",@"name":@"开始日期",@"value":@""},@{@"fieldName":@"endDate",@"name":@"结束日期",@"value":@""}];
                    [dataArr addObjectsFromArray:ParamsArr];
                }
                    break;
                    
                case bigItemReprotType:
                {
                    NSArray *ParamsArr=@[@{@"fieldName":@"subjectId",@"name":@" ",@"value":@""},@{@"fieldName":@"shopIds",@"name":@"商户",@"value":@""},@{@"fieldName":@"confirmState",@"name":@" ",@"value":@""},@{@"fieldName":@"rectifyState",@"name":@" ",@"value":@""},@{@"fieldName":@"shopSize",@"name":@"商户规模",@"value":@""},@{@"fieldName":@"checkUserIds",@"name":@"检查员",@"value":@""},@{@"fieldName":@"startDate",@"name":@"开始日期",@"value":@""},@{@"fieldName":@"endDate",@"name":@"结束日期",@"value":@""}];
                    
                    [dataArr addObjectsFromArray:ParamsArr];
                    
                }
                    break;
                case smallItemReprotType:
                {
                    NSArray *ParamsArr=@[@{@"fieldName":@"subjectId",@"name":@" ",@"value":@""},@{@"fieldName":@"shopIds",@"name":@"商户",@"value":@""},@{@"fieldName":@"confirmState",@"name":@" ",@"value":@""},@{@"fieldName":@"rectifyState",@"name":@" ",@"value":@""},@{@"fieldName":@"shopSize",@"name":@"商户规模",@"value":@""},@{@"fieldName":@"checkUserIds",@"name":@"检查员",@"value":@""},@{@"fieldName":@"startDate",@"name":@"开始日期",@"value":@""},@{@"fieldName":@"endDate",@"name":@"结束日期",@"value":@""}];
                    
                    [dataArr addObjectsFromArray:ParamsArr];
                }
                    break;
                    
                default:
                    break;
            }
            
        }
    }else{
        
        //管理员，开办方，检查员查看商户
        
        switch (type) {
            case INAcountType:
            {
                
                NSArray *ParamsArr=@[@{@"fieldName":@"supplierIds",@"name":@"供应商",@"value":@""},@{@"fieldName":@"startDate",@"name":@"开始日期",@"value":@""},@{@"fieldName":@"endDate",@"name":@"结束日期",@"value":@""}];
                
                [dataArr addObjectsFromArray:ParamsArr];
                
            }
                break;
                
            case INNongType:
            {
                
                NSArray *ParamsArr=@[@{@"fieldName":@"startDate",@"name":@"开始日期",@"value":@""},@{@"fieldName":@"endDate",@"name":@"结束日期",@"value":@""}];
                
                [dataArr addObjectsFromArray:ParamsArr];
                
                
            }
                break;
                
            case OutAcountType:
            {
                NSArray *ParamsArr=@[@{@"fieldName":@"startDate",@"name":@"开始日期",@"value":@""},@{@"fieldName":@"endDate",@"name":@"结束日期",@"value":@""}];
                
                [dataArr addObjectsFromArray:ParamsArr];
            }
                break;
                
            case ShopListType:
            {
                NSArray *ParamsArr=@[@{@"fieldName":@"startDate",@"name":@"开始日期",@"value":@""},@{@"fieldName":@"endDate",@"name":@"结束日期",@"value":@""}];
                
                [dataArr addObjectsFromArray:ParamsArr];
            }
                break;
                
            case OpenListType:
            {
                //无
            }
                break;
            case SatffListType:
            {
                NSArray *ParamsArr=@[@{@"fieldName":@"startDate",@"name":@"开始日期",@"value":@""},@{@"fieldName":@"endDate",@"name":@"结束日期",@"value":@""}];
                
                [dataArr addObjectsFromArray:ParamsArr];
            }
                break;
            case PositionListType:
            {
                //keyword
            }
                break;
            case SupplyListType:
            {
                //keyword
            }
                break;
            case ProductsListType:
            {
                //keyword
            }
                break;
            case ProductCataType:
            {
                //keyword
            }
                break;
            case SubjectListType:
            {
                //无
            }
                break;
            case CheckRecordListType:
            {
                NSArray *ParamsArr=@[@{@"fieldName":@"checkUserIds",@"name":@"检查员",@"value":@""},@{@"fieldName":@"subjectIds",@"name":@"检查主题",@"value":@""},@{@"fieldName":@"startDate",@"name":@"开始日期",@"value":@""},@{@"fieldName":@"endDate",@"name":@"结束日期",@"value":@""}];
                
                [dataArr addObjectsFromArray:ParamsArr];
            }
                break;
            case CustomGroupListType:
            {
                //无
            }
                break;
            case GroupChildListType:
            {
                //无
            }
                break;
                
            case PatrolListType:
            {
                NSArray *ParamsArr=@[@{@"fieldName":@"checkUserIds",@"name":@"检查员",@"value":@""},@{@"fieldName":@"startDate",@"name":@"开始日期",@"value":@""},@{@"fieldName":@"endDate",@"name":@"结束日期",@"value":@""}];
                
                [dataArr addObjectsFromArray:ParamsArr];
            }
                break;
                
            case bigItemReprotType:
            {
                NSArray *ParamsArr=@[@{@"fieldName":@"subjectId",@"name":@" ",@"value":@""},@{@"fieldName":@"confirmState",@"name":@" ",@"value":@""},@{@"fieldName":@"rectifyState",@"name":@" ",@"value":@""},@{@"fieldName":@"checkUserIds",@"name":@"检查员",@"value":@""},@{@"fieldName":@"startDate",@"name":@"开始日期",@"value":@""},@{@"fieldName":@"endDate",@"name":@"结束日期",@"value":@""}];
                
                [dataArr addObjectsFromArray:ParamsArr];
                
            }
                break;
            case smallItemReprotType:
            {
                NSArray *ParamsArr=@[@{@"fieldName":@"subjectId",@"name":@" ",@"value":@""},@{@"fieldName":@"confirmState",@"name":@" ",@"value":@""},@{@"fieldName":@"rectifyState",@"name":@" ",@"value":@""},@{@"fieldName":@"checkUserIds",@"name":@"检查员",@"value":@""},@{@"fieldName":@"startDate",@"name":@"开始日期",@"value":@""},@{@"fieldName":@"endDate",@"name":@"结束日期",@"value":@""}];
                
                [dataArr addObjectsFromArray:ParamsArr];
            }
                break;
              
            case ProductStyleType:
            {
                NSArray *ParamsArr=@[@{@"fieldName":@"catId",@"name":@"分类",@"value":@"",@"productType":@"商品分类"}];
                [dataArr addObjectsFromArray:ParamsArr];
            }
                break;
            default:
                break;
        }
        
        
        
    }
    
    return dataArr;
    
}


+(NSString*)getChooseUrlWithType:(ChooseType)type
{
    NSArray *PostArr= [USER_DEFAULT objectForKey:@"TBChoose"];//如果本地存在则读取本地的
    
    if (PostArr.count!=0) {
        
        return @"";
    }
    
    switch (type) {
        case ShopListType:
        {
            return @"/index.php/FoodCheckApi/shopFilterParams.json";
        }
            break;
        case OpenListType:
        {
            return @"/index.php/FoodCheckApi/marketFilterParams.json";
        }
            break;
        default:
            break;
    }
    
    return @"";
}


+(NSDictionary*)getChooseParaWithType:(ChooseType)type andType:(NSString*)Type
{
    switch (type) {
        case ShopListType:
        {
            if ([LoginStatuesModel getUserType]==3) {
                
                return @{@"marketId":[NSString stringWithFormat:@"%ld",[LoginStatuesModel getStaffId]],@"type":[NSString stringWithFormat:@"%ld",[LoginStatuesModel shoptype]]};
                
            }else{
                
                if (Type.length!=0) {
                    
                    return @{@"type":Type};
                }
                
                return @{};
                
            }
                
        }
            break;
        case OpenListType:
        {
            
            if (Type.length!=0) {
                
                return @{@"type":Type};
            }
              return @{};
        }
            break;
        default:
            break;
    }
    
    return @{};
}

@end
